package net.lab1024.sa.admin.module.open.heartbeat.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class DeviceHeartbeatReportForm {

    @Schema(description = "设备序列号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备序列号不能为空")
    private String serialno;

    @Schema(description = "设备系统类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备系统类型不能为空")
    private String osType;

    @Schema(description = "心跳时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "心跳时间不能为空")
    private LocalDateTime heartbeatTime;

    @Schema(description = "cpu核心数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "cpu核心数不能为空")
    private Integer cpuCores;

    @Schema(description = "内存大小", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "内存大小不能为空")
    private Integer memorySize;

    @Schema(description = "磁盘大小", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "磁盘大小不能为空")
    private Integer diskSize;
}
